package cn.edu.lingnan.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Component
/**
 * @Controller:
 * @Service
 * @Repository: dao层，数据访问组件，DAO组件
 */
@PropertySource(value = "classpath:dog.properties")
public class Dog {

    @Value("${name}")
    private String name;
    @Value("${age}")
    private Integer age;



}
